package com.bll.impl.moduleAction;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bean.ModuleBean;
import com.bll.Action;
import com.dao.ModuleDao;

public class ShowfModuleAction implements Action{

	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		int userId=Integer.parseInt(request.getSession().getAttribute("userId").toString());
		System.out.println("userId"+userId);
		String lujing=request.getParameter("lujing");
		System.out.println("lujing:"+lujing);
		ModuleDao dao=new ModuleDao();
		List<ModuleBean> beans=dao.SelectAll();
		request.setAttribute("beans", beans);
		return lujing;
	}
    
}
